package org.csmz.class2333;

public class Example06 {
    public static void main(String[] args){
        String s = "hello word";
        System.out.println("将字符串"+s+"中的word替换为everyone，结果为："+s.replace("word","everyone"));
        System.out.println("去除字符串"+s+"两端的空格，结果为："+s.trim());
        System.out.println("去除字符串"+s+"中所有空格，结果为"+s.replace("",""));
    }
}
